@extends('common.admin-master')

@section('html-body')
    <div class="content">

        <div class="header">
            <h1 class="page-title">用户管理</h1>
        </div>

        <div class="container-fluid">
            <div class="row-fluid">

                <div class="row-fluid">
                    <div id="TabContent" class="tab-content">
                        <div class="tab-pane fade in active" id="creater_list">
                            <div class="row-fluid">
                                <div class="block span12">
                                    <a href="#tablewidget" class="block-heading" data-toggle="collapse">管理员列表<span
                                                class="label label-warning"></span></a>
                                    <div id="tablewidget" class="block-body collapse in">
                                        <table class="table">
                                            <thead>
                                            <tr>
                                                <th>管理员id</th>
                                                <th>管理员帐号</th>
                                                <th>管理员密码</th>
                                                <th>操作</th>
                                            </tr>
                                            </thead>
                                            <tbody>
                                            @if($admins)
                                                @foreach($admins as $admin)
                                                    <tr>
                                                        <td>{{$admin->id}}</td>
                                                        <td>{{$admin->username}}</td>
                                                        <td>****</td>
                                                        <td>
                                                            <a class="edit" href="{{route('Admin.Service.showChangePwd',['id'=>$admin->id])}}">修改密码</a>
                                                            @if($admin->role !== '3')
                                                                @endif
                                                        </td>
                                                    </tr>
                                                @endforeach
                                            @endif
                                            </tbody>
                                        </table>
                                    </div>
                                    <div class="pagination">
                                        <ul>
                                            {!! $admins->render() !!}
                                        </ul>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
        </div>

    </div>

    {{--省市联动--}}

    <script>
    </script>
@endsection


